import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    items: [],
    markerList: [],
    newCenterIP: [],
  },
  mutations: {
    //生成500个随机点标记
    setMarkerList(state, val) {
      state.markerList = val;
    },
    //点击当前点标记
    setNewCneterIP(state, val) {
      state.newCenterIP = val
    },
    //删除后剩余的坐标
    setLastItems(state, val) {
      state.items = val;
    }
  },
  actions: {
  },
  modules: {
  }
})
